package com.gavindon.android.repo

import com.gavindon.android.base.BaseRepository
import com.gavindon.android.entity.CollectRecordResp
import com.gavindon.android.entity.StudyRecordResp
import com.gavindon.android.network.DataResult

/**
 * description: 学习记录和收藏记录
 * Created by liNan on  2022-2-11 15:01
 */
class RecordRepo : BaseRepository() {

    suspend fun getCollect(subjectType: Int): DataResult<List<CollectRecordResp>> {
        return launchRequest {
            service.clientFavoriteCourses(subjectType)
        }
    }

    suspend fun getStudyRecord(): DataResult<List<StudyRecordResp>> {
        return launchRequest {
            service.clientCourseRcd()
        }
    }
}